function T = getDecimalExpiration( ticker )

if ticker(5) < 'M'
    month = double( ticker(5) ) - 64;
else
    month = double( ticker(5) ) - 76;
end

calendarArray = calendar( 2010+str2double(ticker(4)), month );

if calendarArray(1,5) < 0.1
    expirationDate = datenum( 2010+str2double(ticker(4)), ...
        month, calendarArray(4,5),20,0,0 );
else
    expirationDate = datenum( 2010+str2double(ticker(4)), ...
        month, calendarArray(3,5),20,0,0 );
end

T = (wrkdydif( now, expirationDate ) - 1) / 252;